package com.example.g5project.entity.frontEndObject;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

/**
 * @author Hu Zirui
 * @version 1.0.0
 * @ClassName Message.java
 * @Description TODO
 * @createTime 2022年04月14日 17:33:00
 */
@Getter
@Setter
@ApiModel(value = "chat")
@Entity(name = "chat")
@AllArgsConstructor
public class NewChat {
    @Id
    @JsonProperty("id")
    private Integer id;                     /*咨询记录id*/
    @JsonProperty("is_deleted")
    private Integer is_deleted;             /*是否标记删除*/
    @JsonProperty("caller_id")
    private Integer caller_id;              /*顾客id*/
    @JsonProperty("consultant_id")
    private Integer counselor_id;           /*咨询师id*/
    @JsonProperty("supervisor_name")
    private String supervisor_name;          /*督导姓名*/
    @JsonProperty("start_time")
    private Date start_time;                /*起始时间*/
    @JsonProperty("end_time")
    private Date end_time;                  /*结束时间*/
    @JsonProperty("hold_time")
    private String hold_time;               /*持续时间*/
    @JsonProperty("score")
    private Integer score;                  /*评级*/
    @JsonProperty("comment_caller")
    private String comment_caller;          /*用户评价内容*/
    @JsonProperty("comment_counselor")
    private String comment_counselor;       /*咨询师评价内容*/

    public NewChat() {

    }
}
